<?php

namespace App\Models\MainDB;

use App\Traits\BelongsToUserData;
use Illuminate\Database\Eloquent\Model;

class HappySpecialUser extends Model{

    use BelongsToUserData;

    protected $table = 'ln_happy_special_user';     //数据库内完整表名

    protected $primaryKey = 'id';    //主键名

    protected $fillable = [
        "id",
        "user_id",
        "user_code",
        "nickname",
        "add_time",
        "expired_time",
        "status",
        "incoin_total",
        "outcoin_total",
        "updated_at",
        "created_at",
    ];

    public $timestamps = false;

    public function types()
    {
        return $this->hasMany('App\Models\MainDB\HappySpecialUserPool', 'user_id', 'user_id');
    }
}
